package edu.xust.service.impl;

import edu.xust.config.Resource;
import edu.xust.config.Service;
import edu.xust.dao.StationDao;
import edu.xust.entity.Station;
import edu.xust.entity.StationExample;
import edu.xust.page.PageInfo;
import edu.xust.service.StationService;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;

/**
 * @auther: zhangxin
 * @Description:
 */
@Service("stationService")
public class StationServiceImpl implements StationService {

    @Resource
    StationDao stationDao;

    @Override
    public List<Station> getStationByPage(PageInfo pageInfo) throws Exception {
        return stationDao.getStationByPage(pageInfo);
    }

    @Override
    public List<Station> selectByExample(StationExample example) {
        return stationDao.selectByExample(example);
    }

    @Override
    public Integer addStation(Station station) {

        return stationDao.addStation(station);
    }

    @Override
    public Integer editStation(Station station) {
        return stationDao.editStation(station);
    }

    @Override
    public Station getStationById(String sic) {
        return stationDao.getStationById(sic);
    }


    @Override
    public Integer deleteStationById(String sic) {
        return stationDao.deleteStationById(sic);
    }
}
